home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4281 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  791 b 

  1. Path: rintintin.Colorado.EDU!woodjr
  2. From: woodjr@rintintin.Colorado.EDU (WOOD  JAMEY RYAN)
  3. Newsgroups: crl.general,comp.sys.sun.misc,comp.unix.sys5.misc,comp.lang.c,sci.math
  4. Subject: Re: Problem with C for the mathematical programm
  5. Date: 3 Feb 1996 03:55:49 GMT
  6. Organization: University of Colorado, Boulder
  7. Message-ID: <4eumc5$ph0@peabody.colorado.edu>
  8. References: <4epq2e$h4b@crl2.crl.com>
  9. NNTP-Posting-Host: rintintin.colorado.edu
  10.  
  11. In article <4epq2e$h4b@crl2.crl.com>, Iouri Sorkine <sorkin@crl.com> wrote:
  12. >
  13. >I execute "cc name.c" and receive "ld: Undefined symbol
  14. >                                       _cos
  15. >                                       _sin
  16.  
  17. To use these functions you need to tell the compiler to link with the math 
  18. libraries.  To do this, try: "cc name.c -lm"
  19.  
  20. --Jamey
  21.